package ru.len.cafe.ws.common;

import java.security.NoSuchAlgorithmException;

import javax.ejb.EJB;
import javax.jws.WebService;

import ru.len.cafe.ejb.LoginEJB;

@WebService(name = "LoginService", portName = "LoginServicePort")
public class Login {
    @EJB
    LoginEJB loginEJB;
    
    public String login(String login, String password) throws NoSuchAlgorithmException{
	return loginEJB.login(login, password);
    }

}
